
package com.intretech.umsin.oss.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.intretech.umsin.datasource.entity.BaseEntity;


 /**
 * @version V1.0
 * 文件信息:file_info 对应实体类.
 * @ClassName: FileInfo
 * @Description: 文件信息:file_info 对应实体类.
 * @author: 李启联
 * @date:   2022-6-16 11:22:37
 * @Copyright: Copyright (c) 2022
 */
@TableName("`file_info`")
public class FileInfoEntity extends BaseEntity {
   // 按照一定规则算出对应文件的md5值,用于业务判定是否为同一文件
   @TableField(value = "file_md5")
   private String fileMd5;
   // 文件名称
   @TableField(value = "name")
   private String name;
   // 是否为图片
   @TableField(value = "is_img")
   private Integer isImg;
   // 内容类型
   @TableField(value = "content_type")
   private String contentType;
   // 文件大小
   @TableField(value = "size")
   private Long size;
   // 文件类型
   @TableField(value = "file_type")
   private String fileType;
   // 物理路径
   @TableField(value = "path")
   private String path;
   // 外部访问路径
   @TableField(value = "url")
   private String url;
   // 文件来源
   @TableField(value = "source")
   private String source;
   // 业务关联ID
   @TableField(value = "business_id")
   private String businessId;
   // 用户自定义
   @TableField(value = "user_define")
   private String userDefine;
   // 目标存储名称
   @TableField(value = "tags_name")
   private String tagsName;

   public String getFileMd5(){
        return this.fileMd5;
   }
   public void setFileMd5(String fileMd5){
        this.fileMd5 = fileMd5;
   }
   public String getName(){
        return this.name;
   }
   public void setName(String name){
        this.name = name;
   }
   public Integer getIsImg(){
        return this.isImg;
   }
   public void setIsImg(Integer isImg){
        this.isImg = isImg;
   }
   public String getContentType(){
        return this.contentType;
   }
   public void setContentType(String contentType){
        this.contentType = contentType;
   }
   public Long getSize(){
        return this.size;
   }
   public void setSize(Long size){
        this.size = size;
   }
   public String getFileType(){
        return this.fileType;
   }
   public void setFileType(String fileType){
        this.fileType = fileType;
   }
   public String getPath(){
        return this.path;
   }
   public void setPath(String path){
        this.path = path;
   }
   public String getUrl(){
        return this.url;
   }
   public void setUrl(String url){
        this.url = url;
   }
   public String getSource(){
        return this.source;
   }
   public void setSource(String source){
        this.source = source;
   }
   public String getBusinessId(){
        return this.businessId;
   }
   public void setBusinessId(String businessId){
        this.businessId = businessId;
   }
   public String getUserDefine(){
        return this.userDefine;
   }
   public void setUserDefine(String userDefine){
        this.userDefine = userDefine;
   }
   public String getTagsName(){
        return this.tagsName;
   }
   public void setTagsName(String tagsName){
        this.tagsName = tagsName;
   }

  public FileInfoEntity(){
  }


  @Override
  public String toString(){
  return " FileInfo ["
    +" fileMd5 = " +fileMd5 +" ,"
    +" name = " +name +" ,"
    +" isImg = " +isImg +" ,"
    +" contentType = " +contentType +" ,"
    +" size = " +size +" ,"
    +" fileType = " +fileType +" ,"
    +" path = " +path +" ,"
    +" url = " +url +" ,"
    +" source = " +source +" ,"
    +" businessId = " +businessId +" ,"
    +" userDefine = " +userDefine +" ,"
    +" tagsName = " +tagsName +" ,"
  +" ]";
  }
}